#pragma once
#ifndef ENTITYPLAYER_H
#define ENTITYPLAYER_H

#include "WorldEntity.h"

class CEntityPlayer: public CWorldEntity
{
private:
	float m_currentHealth;
	float m_totalHealth;
	float m_offsetYaw;
	DWORD m_interpolationStartTime;
	float m_interpolationDuration;
	D3DXVECTOR3 m_interpolationFinalPosition;
	D3DXVECTOR3 m_interpolationPreviousPosition;
	float m_sensitivityMouse;

public:
	CEntityPlayer(int gfxIndex, D3DXVECTOR3 initialPosition, float initialPitch, float initialYaw, float initialRoll, float speed, 
		float totalHealth, bool collision);
	~CEntityPlayer(void);

	void doUpdate(void);
	void doRender(void);

	//gettors
	D3DXVECTOR3 getPosition()const;
	float getPitch()const;
	float getYaw()const;
	float getRoll()const;
	float getOffsetYaw()const;
	float getHealth()const;

	//input functions
	void moveForward(float amount);
	void moveBackward(float amount);
	void strafeLeft(float amount);
	void strafeRight(float amount);
	void turnLeftRight(float amount);
};
#endif